Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sleep a scheduler if there's no work to do #16

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

leostera
Copy link
Collaborator

This should stop busy waiting when there are:

  1. No processes to run
  2. No IO to poll
  3. No Timers to tick

We're also bumping up the number of processes we iterate over between loops from 10 to 5,000.

@leostera
Copy link
Collaborator Author

This advances #2. We're just missing the hibernate () call.

@leostera leostera merged commit 0336e36 into main Dec 18, 2023
4 of 6 checks passed
@leostera leostera deleted the feat/fix-busy-waiting branch December 18, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant